package com.module.TraceSource;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.module.TraceSource.manager.TsEntFlowManager;
import com.module.TraceSource.vo.TsEntEvent;


/**
 * 设备流程权限管理
 * @author Administrator
 *
 */
public class TsEntFlowService {
	
	/**
	 * 根据企业id获取企业的设备管理权限
	 * @param orgid
	 * @return
	 * @throws Exception
	 */
	public List listFlowEvent(String orgid) throws Exception{
		 Map map = new HashMap();
		 TsEntEvent ts = new TsEntEvent();
		 ts.setOrgid(orgid);
//		 map.put("tsEntFlow", ts);
//		 map.put("cn","tsEntFlowManager");
//		 map.put("opt","findEntFlowByOrgId");
//		 return TraceSourceSocketClient.returnValue(map).getList();
		 TsEntFlowManager tsEntFlowManager = TsEntFlowManager.getInstance();
		 List list = tsEntFlowManager.findEntFlowByOrgId(orgid);
		 return list;
	}
	

}
